<?php
/**
 * Created by PhpStorm.
 * User: zd
 * Date: 2018/10/9
 * Time: 10:56
 */

namespace app\api\validate;

/**
 * 接收企业微信推送消息时验证规则
 * Class WorkParameter
 * @package app\api\validate
 */
class WorkParameter extends BaseValidate
{
    protected $rule=[
        'msg_signature'=>'require|isNotEmpty',
        'timestamp'=>'require|isNotEmpty',
        'nonce'=>'require|isNotEmpty',
    ];

    protected $message=[
        'msg_signature'=>'企业微信加密签名,不能为空',
        'timestamp'=>'时间戳不能为空',
        'nonce'=>'随机字符串不能为空',
    ];
}